export interface WebSocketResponse {
  type: "deviceInfo" | "planList";

  [key: string]: any;
}

export interface PlayPeriod {
  endTime: string;
  startTime: string;
  // 这个应该是 task，但是担心加字段会出问题，复用原来的 html 了
  html: {
    html: string;
    duration: number;
  }[];
  loopMode: string;
}

export interface Plan {
  endDate: string;
  startDate: string;
  id: number;
  mode: string;
  playPeriods: PlayPeriod[];
}

export interface Task {
  html: string;
  duration: number;
}
